/*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

FIVe3D
Flash Interactive Vector-based 3D
Mathieu Badimon  |  five3d@mathieu-badimon.com

http://five3D.mathieu-badimon.com  |  http://five3d.mathieu-badimon.com/archives/  |  http://code.google.com/p/five3d/

/*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

class net.badimon.five3D.geom.Point {

	public var x:Number;
	public var y:Number;
	public var z:Number;

	function Point(x:Number, y:Number, z:Number) {
		this.x = x;
		this.y = y;
		this.z = z;
	}

	public function getPerspective(viewdistance:Number):Number {
		return viewdistance / (z + viewdistance);
	}

	public function project(perspective:Number):Void {
		x *= perspective;
		y *= perspective;
		z = 0;
	}
}